package com.ray.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ray.bean.TemporalIntervalBean;

public interface TemporalIntervalMapper {
	
/**
 * 
 * @Title: getTemporalIntervalId  
 * @author: 李宇航 
 * @Description: 通过开始时间和结束时间获取时间段id
 * @param startTime
 * @param endTime     
 * @return: int      
 * @throws
 */
public String getTemporalIntervalId(@Param("startTime")String startTime,@Param("endTime")String endTime);


/**
 * 
 * @Title: insertTemporalInterval  
 * @author: 李宇航 
 * @Description: 插入时间段信息
 * @param temporalIntervalBean      
 * @return: void      
 * @throws
 */
public void insertTemporalInterval(TemporalIntervalBean temporalIntervalBean);

public TemporalIntervalBean getTemporalIntervalBeanById(@Param("timeIntervalId")String timeIntervalId);

public List<TemporalIntervalBean> selectAllTemporalIntervalByControlSwitchId(@Param("controlSwitchId")String controlSwitchId);

public List<TemporalIntervalBean> selectAllTemporalIntervalByMachineId(@Param("id")String id);
}